/*
Copyright (C) 2022-2024 Inspur Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package controller

import (
	"did-service/auth"
	"did-service/common/http"

	"github.com/emicklei/go-restful"
)

func (dc *DidController) QueryMenuList(req *restful.Request, resp *restful.Response) {
	userType := auth.GetCurrentUserType(req)
	list := dc.srv.QueryMenuList(userType)
	http.OkWithData(resp, "查询成功", list)
}
